# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pypykatz
_pkgname=pypykatz
pkgver=0.6.11
pkgrel=1
pkgdesc='Python implementation of Mimikatz.'
url='https://github.com/skelsec/pypykatz'
arch=('any')
license=('MIT')
depends=('python' 'python-minidump' 'python-minikerberos' 'python-aiowinreg'
         'python-msldap' 'python-winacl' 'python-unicrypto' 'python-aiosmb'
         'python-aesedb' 'python-asyauth')
makedepends=('python-setuptools')
source=("https://github.com/skelsec/pypykatz/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('2cc6bcc521677be9a9d3b30a7fb6dfe823265f8aa40f4f964e97146fb312590d01e4e5597527488718010ae1424b85b291bdf0a165d516eb28edbc51a548a9f4')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

